<?php
class Mageex_Fbcp_IndexController extends Mage_Core_Controller_Front_Action
{
    public function indexAction()
    {
		$data = array();
		$data["coupon_code"] = Mage::helper('fbcp/config')->getCode();
    	$this->_sendJson($data);
    }
	private function _sendJson(array $data = array())
    {
        @header('Content-type: application/json');
        echo json_encode($data);
        exit();
    }
}